#include "test_harness.hpp"

#include <iostream>

using namespace std;

int printDCR(DDAS_Client_Result_Data* results)
{
	cout<<endl;

	for(int i=0; i<results->getRowCount(); i++)
	{
		cout<<"Defintion number #"<<i<<": "<<results->getDefinitionNumber(i)<<endl;
                cout<<"Binary representation #"<<i<<": "<<results->getBinaryRepresentation(i)<<endl;
                cout<<"SSE #"<<i<<": "<<results->getSSE(i)<<endl<<endl;
	}

	cout<<endl;
}

int printDCRD(DDAS_CLIENT_RESULT_DATA* results)
{
	cout<<endl;

	for( unsigned int i=0; i<results->size; i++ )
	{
		cout<<"Defintion number #"<<i<<": "<<results->def_nums[i]<<endl;
		cout<<"Binary representation #"<<i<<": "<<results->bin_reps[i]<<endl;
		cout<<"SSE #"<<i<<": "<<results->SSEs[i]<<endl;

		for( unsigned int j=0; j<results->coefficients->size; j++ )
		{
			cout<<"Coefficient index: "<<results->coefficients[i].index[j]<<" value: "<<results->coefficients[i].values[j]<<endl;
		}

		cout<<endl;
	}

	cout<<endl;
}
